﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace BeamModule.SplitBream
{
	internal class StructBreamFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			bool result;
			try
			{
				if (elem.Category.Id.IntegerValue == -2001320)
				{
					result = true;
				}
				else
				{
					result = false;
				}
			}
			catch
			{
				result = false;
			}
			return result;
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			throw new NotImplementedException();
		}
	}
}
